SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 68412: SAS/ACCESS® Interface to Greenplum might not detect a query being killed in Greenplum, resulting in the wrong number of rows being returned

DetailsHotfixAboutRate It

If a query that is submitted to a Greenplum database is terminated by the Greenplum administrator, the original SAS® query might return fewer rows than expected. There is no indication of an error or warning, and so the query appears to have completed successfully.  

Sometimes an error is observed in the SAS log. Here is an example:

ERROR: CLI close cursor error: [SAS][ODBC Greenplum Wire Protocol driver]Socket closed. : [SAS][ODBC Greenplum Wire Protocol driver]Socket closed.

The Greenplum system logs show the termination, as in this example:

2021-09-21 19:23:37.832524 CEST,"user","xxxxxxx",p370188,th-215705728,"10.10.1.2","41459",2021-09-21 19:18:37 CEST,0,con449778,cmd8,seg-1,,dx1907112,,sx1,"FATAL","57P01","terminating connection due to administrator command",,,,,,"SELECT "column-Name1", ""column-Name2"", ""etc."" FROM schema-name.table-name FOR READ ONLY ",0,,"postgres.c",3670,

A workaround is to set READBUFF=1 either as a data set option or in the connection options of the LIBNAME or CONNECT statement. This setting does not prevent the wrong number of rows being read, but it does provide an error message in the SAS log that is similar to one of the following:

ERROR: CLI cursor extended fetch error: [SAS][ODBC Greenplum Wire Protocol driver][Greenplum]FATAL: terminating connection due to administrator command(File postgres.c; Line 3670; Routine ProcessInterrupts; ) : [SAS][ODBC Greenplum Wire Protocol driver]Socket closed. : [SAS][ODBC Greenplum Wire Protocol driver]Socket closed.
ERROR: PROC SQL runtime error for operation=sqxsrc.
ERROR: An error has occurred.
 
ERROR: CLI cursor extended fetch error: [SAS][ODBC Greenplum Wire Protocol driver]Socket closed.
ERROR: PROC SQL runtime error for operation=sqxsrc.
ERROR: An error has occurred.
ERROR: CLI close cursor error: [SAS][ODBC Greenplum Wire Protocol driver]Socket closed. : [SAS][ODBC Greenplum Wire Protocol driver]Socket closed.

Note: Adding READBUFF=1 might cause a performance overhead.

Click the Hot Fix tab in this note to access the hot fix for this issue.

The hot fix ensures that an error message is always written to the SAS log when a Greenplum server process is terminated. 



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to GreenplumMicrosoft® Windows® for x649.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 8 Enterprise 32-bit9.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 8 Enterprise x649.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 8 Pro 32-bit9.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 8 Pro x649.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 8.1 Enterprise 32-bit9.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 8.1 Enterprise x649.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 8.1 Pro 32-bit9.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 8.1 Pro x649.439.459.4 TS1M69.4 TS1M8
Microsoft Windows 109.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 20089.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 2008 R29.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 2008 for x649.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 2012 Datacenter9.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 2012 R2 Datacenter9.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 2012 R2 Std9.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 2012 Std9.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 20169.439.459.4 TS1M69.4 TS1M8
Microsoft Windows Server 20199.439.459.4 TS1M69.4 TS1M8
Windows 7 Enterprise 32 bit9.439.459.4 TS1M69.4 TS1M8
Windows 7 Enterprise x649.439.459.4 TS1M69.4 TS1M8
Windows 7 Home Premium 32 bit9.439.459.4 TS1M69.4 TS1M8
Windows 7 Home Premium x649.439.459.4 TS1M69.4 TS1M8
Windows 7 Professional 32 bit9.439.459.4 TS1M69.4 TS1M8
Windows 7 Professional x649.439.459.4 TS1M69.4 TS1M8
Windows 7 Ultimate 32 bit9.439.459.4 TS1M69.4 TS1M8
Windows 7 Ultimate x649.439.459.4 TS1M69.4 TS1M8
64-bit Enabled AIX9.439.459.4 TS1M69.4 TS1M8
64-bit Enabled Solaris9.439.459.4 TS1M69.4 TS1M8
HP-UX IPF9.439.459.4 TS1M69.4 TS1M8
Linux for x649.439.459.4 TS1M69.4 TS1M8
Solaris for x649.439.459.4 TS1M69.4 TS1M8
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.